package com.Nov_TwentySix;

public class Solution2027 {

    public int minimumMoves(String s) {
        int res=0;
        int i=0;
        while (i<s.length()){
            if (s.charAt(i)=='X'){
                res++;
                i+=3;
            }else {
                i++;
            }
        }
        return res;
    }

    public static void main(String[] args) {
        Solution2027 solution2027=new Solution2027();
        System.out.println(solution2027.minimumMoves("XXOX"));
    }

}
